package com.wzu.zlb.ems.dao;

import com.wzu.zlb.ems.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ProductMapper {
    List<Product> findAllProducts();
    List<Product> searchProducts(Product product);
    Product findProductById(Integer id);
    Integer AddProduct(Product product);
    Integer ModifyProduct(Product product);
    Integer DeleteProduct(Integer id);
    Product searchProduct(String productName);

}
